import Vue from 'vue'
import App from './App.vue'
import router from './router'
Vue.config.productionTip = false
//跨域请求
import axios from 'axios'
Vue.prototype.$http=axios
axios.defaults.baseURL="http://localhost:9000"
axios.defaults.withCredentials=true
//Element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
//全局样式
import './assets/css/global.css'
//引入icon-font
import './assets/font/iconfont.css'
//引入axios拦截器
import './config/axios'

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
